#include <stdio.h>

void exchange(int* numberA, int* numberB)
{
    int temp;
    if (*numberA < *numberB)
    {
        temp = *numberA;
        *numberA = *numberB;
        *numberB = temp;
    }
}


void bubbleSort(int* numberA, int* numberB, int* numberC)
{
    exchange(numberA, numberB);
    exchange(numberB, numberC);
    exchange(numberA, numberB);
}

int main()
{
    int a, b, c = 0;
    scanf_s("%d %d %d", &a, &b, &c);

    bubbleSort(&a, &b, &c);
    printf("%d ", a);
    printf("%d ", b);
    printf("%d ", c);

}
